# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=i3wm-gaps
pkgver=4.20.1
pkgrel=0
pkgdesc="Improved dynamic tiling window manager with additional features"
url="https://github.com/Airblader/i3"
arch="all"
license="BSD-3-Clause"
replaces="i3wm"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="bison flex libxcb-dev xcb-util-cursor-dev
	xcb-util-keysyms-dev xcb-util-wm-dev libev-dev pango-dev cairo-dev
	yajl-dev startup-notification-dev pcre-dev libxkbcommon-dev
	xcb-util-xrm-dev asciidoc perl xmlto meson"
subpackages="$pkgname-doc"
source="i3wm-$pkgver.tar.gz::https://github.com/Airblader/i3/archive/$pkgver.tar.gz"
builddir="$srcdir/i3-$pkgver"
options="!check" # missing perl bindings for libxcb

build() {
	abuild-meson -Dmans=true -Ddocs=true . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
0f3cab505f5dcd11d4d9ab63aa84d7d90e63ffebe6a867c9592c7979fe57d37db69869d555ea2127b84caa108778a028e03fa8fab1432d897c02723e3c83e6ba  i3wm-4.20.1.tar.gz
"
